{% extends 'base.html' %}

{% block body %}
    <div class="row" style="margin-top: 50px">
        <div class="col-sm-12">
            <h2 align="center" style="color: black;font-size: 40px">欢迎使用向日葵自然语言处理系统</h2>

        </div>


        <div class="col-sm-4" style="margin-top: 40px"></div>
        <div class="col-sm-4" style="margin-top: 40px">

            <div class="panel panel-default">
                <div class="panel-heading">
                    注册
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" method="post">
                        <div class="form-group">
                            <label for="firstname" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="username" name="username"
                                       placeholder="请输入名字">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="lastname" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="lastname" name="password"
                                       placeholder="请输入密码">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-default">注册</button>
                            </div>
                            <div class="col-sm-offset-4 col-sm-2">
                                <a href="/login" style="margin-top: 10px">登录</a>
                            </div>
                        </div>
                    </form>

                </div>
            </div>


        </div>
    </div>
{% if signup %}
    <script>
    alert("注册成功")
    window.location.href="/login"

    </script>
{% endif %}
{% endblock %}
